package com.ayf.payment.game.api.service;

import com.ayf.payment.game.api.entity.MerchantRole;

import java.util.List;

public interface MerchantRoleService {

    /**
     * 添加用户超级管理员
     *
     * @param merchantRole
     * @return
     */
    int addMerchantAdmin(MerchantRole merchantRole);

    /**
     * 查询出所有角色
     *
     * @return
     * @param merchantRole
     */
    List<MerchantRole> list(MerchantRole merchantRole);

    /**
     * 添加角色
     *
     * @param merchantRole
     * @return
     */
    boolean addRole(MerchantRole merchantRole);

    /**
     * 删除角色
     *
     * @param merchantRole
     * @return
     */
    boolean deleteRole(MerchantRole merchantRole);

    /**
     * 修改角色
     *
     * @param merchantRole
     * @return
     */
    boolean updateRole(MerchantRole merchantRole);
}
